class Solution {
  public int minOperations(int[] nums, int k) {
    return Arrays.stream(nums).sum() % k;
  }
}
